import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_admin_log",{schema:"fastadmin" } )
@Index("name",["username",])
export class fa_admin_log {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"admin_id"
        })
    admin_id:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"username"
        })
    username:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:1500,
        name:"url"
        })
    url:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:100,
        name:"title"
        })
    title:string;
        

    @Column("text",{ 
        nullable:false,
        name:"content"
        })
    content:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:50,
        name:"ip"
        })
    ip:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"useragent"
        })
    useragent:string;
        

    @Column("int",{ 
        nullable:true,
        name:"createtime"
        })
    createtime:number | null;
        
}
